<template>
  <footer class="footer">
    <span class="todo-count">剩余<strong>{{changdu}}</strong></span>
    <ul class="filters">
      <li>
      <a :class="{selected:selected==='all'}" href="javascript:;" @click="$emit('xuanze','all')">全部</a>
      </li>
      <li>
        <a :class="{selected:selected==='no'}" href="javascript:;" @click="$emit('xuanze','no')">未完成</a>
      </li>
      <li>
        <a :class="{selected:selected==='yes'}" href="javascript:;" @click="$emit('xuanze','yes')" >已完成</a>
      </li>
    </ul>
    <button class="clear-completed" @click="$emit('shanchu')">清除已完成</button>
  </footer>
</template>

<script>
export default {
props:['selected','changdu']
}
</script>